#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Copyright © 启明星辰 版权所有
# @Time    : 2023/11/2 17:06
# @Author  : 胡浩浩
# @File    : group_model.py
# @IDE     : PyCharm
# @description :
from pydantic import BaseModel
from tortoise import fields, models


class GroupModel(models.Model):
    id = fields.IntField(pk=True)
    product_name = fields.CharField(max_length=255)
    group_info = fields.TextField()


class Group(BaseModel):
    product_name: str
    group_info: str